﻿using System;
using GeoAPI.Geometries;
using NetTopologySuite.Geometries;

namespace NetTopologySuite.Simplify
{
	public class TaggedLineSegment : LineSegment
	{
		public TaggedLineSegment(Coordinate p0, Coordinate p1, IGeometry parent, int index) : base(p0, p1)
		{
			this._parent = parent;
			this._index = index;
		}

		public TaggedLineSegment(Coordinate p0, Coordinate p1) : this(p0, p1, null, -1)
		{
		}

		public IGeometry Parent
		{
			get
			{
				return this._parent;
			}
		}

		public int Index
		{
			get
			{
				return this._index;
			}
		}

		private readonly IGeometry _parent;

		private readonly int _index;
	}
}
